package com.mindskip.xzs.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mindskip.xzs.domain.ExamUser;
import com.mindskip.xzs.repository.ExamUserMapper;
import com.mindskip.xzs.service.ExamUserService;
import org.springframework.stereotype.Service;

@Service
public class ExamUserServiceImpl extends ServiceImpl<ExamUserMapper, ExamUser> implements ExamUserService {

    @Override
    public boolean updateUserExamStatus(Integer examId, Integer userId, Integer status) {
        return baseMapper.updateUserExamStatus(userId, status, examId) == 1;
    }
}
